package com.itlaoqi.springcloud.controller;

import com.itlaoqi.springcloud.client.BService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class SampleController {
    @Resource
    private BService bService;
    @GetMapping("/c")
    @ResponseBody
    public String methodC(){
        String result = bService.methodB();
        result = result + "<br/>This is Method C";
        return result;
    }
}
